<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style>
			
			div#d1 ul li:first-child,div#d1 ul li:last-child{
				color: red;
				font-size: 50px;
			}
			/* div#d1 ul li:nth-child(even){
				background-color: blueviolet;
			} */
			div#d1 ul li:nth-child(3n-1){
				background-color: blueviolet;
			}
		</style>
	</head>
	<body>
		<div id="d1">
			<ul>
				<li>苹果</li>
				<li>梨子</li>
				<li>桃子</li>
				<li>萝卜</li>
				<li>杏子</li>
				<li>李子</li>
				<li>柿子</li>
				<li>葡萄</li>
				<li>fire dragon fruit</li>
			</ul>
		</div>
	</body>
</html>
